﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000655 RID: 1621
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class GetAvatarDataScRsp : IMessage<GetAvatarDataScRsp>, IMessage, IEquatable<GetAvatarDataScRsp>, IDeepCloneable<GetAvatarDataScRsp>, IBufferMessage
	{
		// Token: 0x170014F5 RID: 5365
		// (get) Token: 0x06004930 RID: 18736 RVA: 0x000C9493 File Offset: 0x000C7693
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<GetAvatarDataScRsp> Parser
		{
			get
			{
				return GetAvatarDataScRsp._parser;
			}
		}

		// Token: 0x170014F6 RID: 5366
		// (get) Token: 0x06004931 RID: 18737 RVA: 0x000C949A File Offset: 0x000C769A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return GetAvatarDataScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170014F7 RID: 5367
		// (get) Token: 0x06004932 RID: 18738 RVA: 0x000C94AC File Offset: 0x000C76AC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return GetAvatarDataScRsp.Descriptor;
			}
		}

		// Token: 0x06004933 RID: 18739 RVA: 0x000C94B3 File Offset: 0x000C76B3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetAvatarDataScRsp()
		{
		}

		// Token: 0x06004934 RID: 18740 RVA: 0x000C94D4 File Offset: 0x000C76D4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetAvatarDataScRsp(GetAvatarDataScRsp other) : this()
		{
			this.isGetAll_ = other.isGetAll_;
			this.avatarList_ = other.avatarList_.Clone();
			this.retcode_ = other.retcode_;
			this.dLEGHAHMNAD_ = other.dLEGHAHMNAD_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06004935 RID: 18741 RVA: 0x000C9532 File Offset: 0x000C7732
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetAvatarDataScRsp Clone()
		{
			return new GetAvatarDataScRsp(this);
		}

		// Token: 0x170014F8 RID: 5368
		// (get) Token: 0x06004936 RID: 18742 RVA: 0x000C953A File Offset: 0x000C773A
		// (set) Token: 0x06004937 RID: 18743 RVA: 0x000C9542 File Offset: 0x000C7742
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool IsGetAll
		{
			get
			{
				return this.isGetAll_;
			}
			set
			{
				this.isGetAll_ = value;
			}
		}

		// Token: 0x170014F9 RID: 5369
		// (get) Token: 0x06004938 RID: 18744 RVA: 0x000C954B File Offset: 0x000C774B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<Avatar> AvatarList
		{
			get
			{
				return this.avatarList_;
			}
		}

		// Token: 0x170014FA RID: 5370
		// (get) Token: 0x06004939 RID: 18745 RVA: 0x000C9553 File Offset: 0x000C7753
		// (set) Token: 0x0600493A RID: 18746 RVA: 0x000C955B File Offset: 0x000C775B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x170014FB RID: 5371
		// (get) Token: 0x0600493B RID: 18747 RVA: 0x000C9564 File Offset: 0x000C7764
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> DLEGHAHMNAD
		{
			get
			{
				return this.dLEGHAHMNAD_;
			}
		}

		// Token: 0x0600493C RID: 18748 RVA: 0x000C956C File Offset: 0x000C776C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as GetAvatarDataScRsp);
		}

		// Token: 0x0600493D RID: 18749 RVA: 0x000C957C File Offset: 0x000C777C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(GetAvatarDataScRsp other)
		{
			return other != null && (other == this || (this.IsGetAll == other.IsGetAll && this.avatarList_.Equals(other.avatarList_) && this.Retcode == other.Retcode && this.dLEGHAHMNAD_.Equals(other.dLEGHAHMNAD_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600493E RID: 18750 RVA: 0x000C95F0 File Offset: 0x000C77F0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.IsGetAll)
			{
				num ^= this.IsGetAll.GetHashCode();
			}
			num ^= this.avatarList_.GetHashCode();
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			num ^= this.dLEGHAHMNAD_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600493F RID: 18751 RVA: 0x000C9664 File Offset: 0x000C7864
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06004940 RID: 18752 RVA: 0x000C966C File Offset: 0x000C786C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06004941 RID: 18753 RVA: 0x000C9678 File Offset: 0x000C7878
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			this.avatarList_.WriteTo(ref output, GetAvatarDataScRsp._repeated_avatarList_codec);
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(88);
				output.WriteUInt32(this.Retcode);
			}
			if (this.IsGetAll)
			{
				output.WriteRawTag(96);
				output.WriteBool(this.IsGetAll);
			}
			this.dLEGHAHMNAD_.WriteTo(ref output, GetAvatarDataScRsp._repeated_dLEGHAHMNAD_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06004942 RID: 18754 RVA: 0x000C96F4 File Offset: 0x000C78F4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.IsGetAll)
			{
				num += 2;
			}
			num += this.avatarList_.CalculateSize(GetAvatarDataScRsp._repeated_avatarList_codec);
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			num += this.dLEGHAHMNAD_.CalculateSize(GetAvatarDataScRsp._repeated_dLEGHAHMNAD_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06004943 RID: 18755 RVA: 0x000C9764 File Offset: 0x000C7964
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(GetAvatarDataScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.IsGetAll)
			{
				this.IsGetAll = other.IsGetAll;
			}
			this.avatarList_.Add(other.avatarList_);
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this.dLEGHAHMNAD_.Add(other.dLEGHAHMNAD_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06004944 RID: 18756 RVA: 0x000C97D6 File Offset: 0x000C79D6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06004945 RID: 18757 RVA: 0x000C97E0 File Offset: 0x000C79E0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 88U)
				{
					if (num == 26U)
					{
						this.avatarList_.AddEntriesFrom(ref input, GetAvatarDataScRsp._repeated_avatarList_codec);
						continue;
					}
					if (num == 88U)
					{
						this.Retcode = input.ReadUInt32();
						continue;
					}
				}
				else
				{
					if (num == 96U)
					{
						this.IsGetAll = input.ReadBool();
						continue;
					}
					if (num == 120U || num == 122U)
					{
						this.dLEGHAHMNAD_.AddEntriesFrom(ref input, GetAvatarDataScRsp._repeated_dLEGHAHMNAD_codec);
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04001D0B RID: 7435
		private static readonly MessageParser<GetAvatarDataScRsp> _parser = new MessageParser<GetAvatarDataScRsp>(() => new GetAvatarDataScRsp());

		// Token: 0x04001D0C RID: 7436
		private UnknownFieldSet _unknownFields;

		// Token: 0x04001D0D RID: 7437
		public const int IsGetAllFieldNumber = 12;

		// Token: 0x04001D0E RID: 7438
		private bool isGetAll_;

		// Token: 0x04001D0F RID: 7439
		public const int AvatarListFieldNumber = 3;

		// Token: 0x04001D10 RID: 7440
		private static readonly FieldCodec<Avatar> _repeated_avatarList_codec = FieldCodec.ForMessage<Avatar>(26U, Avatar.Parser);

		// Token: 0x04001D11 RID: 7441
		private readonly RepeatedField<Avatar> avatarList_ = new RepeatedField<Avatar>();

		// Token: 0x04001D12 RID: 7442
		public const int RetcodeFieldNumber = 11;

		// Token: 0x04001D13 RID: 7443
		private uint retcode_;

		// Token: 0x04001D14 RID: 7444
		public const int DLEGHAHMNADFieldNumber = 15;

		// Token: 0x04001D15 RID: 7445
		private static readonly FieldCodec<uint> _repeated_dLEGHAHMNAD_codec = FieldCodec.ForUInt32(122U);

		// Token: 0x04001D16 RID: 7446
		private readonly RepeatedField<uint> dLEGHAHMNAD_ = new RepeatedField<uint>();
	}
}
